package com.zzyx.bean;

import java.lang.Integer;;

/**
 * Admin entity. @author MyEclipse Persistence Tools
 */

public class Admin implements java.io.Serializable {

	// Fields
	private static final long serialVersionUID = 2L;
	private Integer id;
	private Hospital hospital;
	private String name;
	private String pwd;
	private int role;
	public Admin() {
	}

	/** minimal constructor */
	public Admin(String name) {
		this.name = name;
	}

	/** full constructor */
	public Admin(Hospital hospital, String name, String pwd, int role) {
		this.hospital = hospital;
		this.name = name;
		this.pwd = pwd;
		this.role = role;
	}

	// Property accessors

	public Admin(String name2, String pwd2) {
		this.name=name2;
		this.pwd=pwd2;
	}

	public Admin(String name, String pwd, int role) {
		this.name=name;
		this.pwd=pwd;
		this.role=role;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Hospital getHospital() {
		return this.hospital;
	}

	public void setHospital(Hospital hospital) {
		this.hospital = hospital;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPwd() {
		return this.pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public int getRole() {
		return this.role;
	}

	public void setRole(int role) {
		this.role = role;
	}

}